package cn.itsource.course;

import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;
//集成feign
@SpringBootApplication
//开启事务管理器
@EnableTransactionManagement
//扫描接口包
@MapperScan("cn.itsource.course.mapper")
//这个地方输入的是接口的包名
@EnableFeignClients("cn.itsource.feignclient")
public class Application2020
{
    public static void main( String[] args )
    {
        SpringApplication.run(Application2020.class);
    }
//    分页插件
@Bean
public PaginationInterceptor paginationInterceptor() {
    return new PaginationInterceptor();
}
}